package com.sinosoft.cnmuseum.dao;


import java.util.HashMap;
import java.util.List;

import com.sinosoft.cnmuseum.entity.MbMusicYxxx;
import com.sinosoft.commontools.record.Record;
import com.sinosoft.dbtools.operate.single.DBSingleTableActorMgr;


public class MbMusicYxxxDao extends BaseDao{

	public MbMusicYxxxDao() {
		this.actor = DBSingleTableActorMgr.getDBSingleTableActor("Mb_music_yxxx");
	}


	public Record getDataByGcxxid(int gcxxid){
		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put(MbMusicYxxx.GCXXID, gcxxid);
		List<Record> list = this.getListByProperty(map);
		if(list!=null&&list.size()>0){
			Record r = list.get(0);
			return r;
		}
		return null;
	}
	
	
	public Record getDataByGcxxid(String gcxxid){
		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put(MbMusicYxxx.GCXXID, gcxxid);
		List<Record> list = this.getListByProperty(map);
		if(list!=null&&list.size()>0){
			Record r = list.get(0);
			return r;
		}
		return null;
	}
}
